﻿<Page x:Class="DynamicDataDisplay.Xbap.Samples.Page1"
	  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	  xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
      xmlns:v="clr-namespace:Microsoft.Research.DynamicDataDisplay.Samples.Internals.Views"
      Title="WPF DynamicDtataDisplay Samples Gallery">
	
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="*"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>

		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>

		<Border BorderBrush="Black" BorderThickness="0.5" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2">
			<v:TreeDemonstrationView x:Name="treeView" DataContext="{StaticResource samples}"/>
		</Border>

		<TextBlock Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center">
			<Run FontSize="20">Click an item in the tree panel on the left to view a demonstration here</Run>
			<LineBreak/>
			<Run Foreground="DarkGray">Note: This Xaml Browser Application doesn't demonstrate all features of DynamicDataDisplay due to browser applications restrictions.</Run>
		</TextBlock>

		<v:DetailsView DataContext="{Binding ElementName=treeView, Path=SelectedValue}" Grid.Column="1"/>
	</Grid>
</Page>
